import request from '@/utils/request'

// 查询动态库存列表
export function listStoreanalysis(query) {
  return request({
    url: '/repository/storeanalysis/list',
    method: 'get',
    params: query
  })
}

// 查询动态库存详细
export function getStoreanalysis(guid) {
  return request({
    url: '/repository/storeanalysis/' + guid,
    method: 'get'
  })
}

// 新增动态库存
export function addStoreanalysis(data) {
  return request({
    url: '/repository/storeanalysis',
    method: 'post',
    data: data
  })
}

// 修改动态库存
export function updateStoreanalysis(data) {
  return request({
    url: '/repository/storeanalysis',
    method: 'put',
    data: data
  })
}

// 删除动态库存
export function delStoreanalysis(guid) {
  return request({
    url: '/repository/storeanalysis/' + guid,
    method: 'delete'
  })
}

// 导出动态库存
export function exportStoreanalysis(query) {
  return request({
    url: '/repository/storeanalysis/export',
    method: 'get',
    params: query
  })
}

// 导出动态库存
export function listReportStoreanalysis(query) {
  return request({
    url: '/repository/storeanalysis/listReport',
    method: 'get',
    params: query
  })
}
